package com.cloud.config.mybatis.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 公共查询参数
 *
 * @author wangjian
 * @version 1.0.0
 * @create 2020年10月15日15:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("查询参数对象")
public class CommonDTO implements Serializable {

    /**
     * serialVersionUID,非版本变更，否则不可随意变更
     */
    private static final long serialVersionUID = -3823509606642999864L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "创建人id")
    private Long createdBy;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新人id")
    private Long updatedBy;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "是否已删除")
    private Boolean deleted;
}
